import request from '@/request'

// 查询参数列表
export function listPointsShop(query) {
  return request({
    url: '/resources/pointsShop/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getPointsShop(pointsShopId) {
  return request({
    url: '/resources/pointsShop/' + pointsShopId,
    method: 'get'
  })
}

// 新增参数配置
export function addPointsShop(data) {
  return request({
    url: '/resources/pointsShop',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updatePointsShop(data) {
  return request({
    url: '/resources/pointsShop',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delPointsShop(pointsShopId) {
  return request({
    url: '/resources/pointsShop/' + pointsShopId,
    method: 'delete'
  })
}
